<h1>Listing activities</h1>

<h3><%= link_to 'Create New Task', :action => 'new' if @project %></h3>

<table>
  <tr>
    <th>Project</th>
    <th>Phase</th>
    <th>Weight</th>
    <th>Projected time</th>
  </tr>

<% for activity in @activities %>
  <tr>
    <td><%=h activity.project_id %></td>
    <td><%=h activity.phase_id %></td>
    <td><%=h activity.weight %></td>
    <td><%=h activity.projected_time %></td>


    <td><%= link_to 'Show', activity %></td>
    <td><%= link_to 'Edit', edit_activity_path(activity) %></td>
    <td><%= link_to 'Destroy', activity, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New activity', new_activity_path %>
